interface SafeAreaInsets {
  top: number
  bottom: number
  left: number
  right: number
}
export function useSafeAreaHooks() {
  const systeam = uni.getSystemInfoSync()

  const safeAreaInsets: SafeAreaInsets = systeam.safeAreaInsets!

  return {
    top: safeAreaInsets.top,
    bottom: safeAreaInsets.bottom,
    left: safeAreaInsets.left,
    right: safeAreaInsets.right,
  }
}
